// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addPeripheralInfo POST /api/peripheralInfo/add */
export async function addPeripheralInfoUsingPost(
  body: API.PeripheralInfoAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/peripheralInfo/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deletePeripheralInfo POST /api/peripheralInfo/delete */
export async function deletePeripheralInfoUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/peripheralInfo/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editPeripheralInfo POST /api/peripheralInfo/edit */
export async function editPeripheralInfoUsingPost(
  body: API.PeripheralInfoEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/peripheralInfo/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getPeripheralInfoVOById GET /api/peripheralInfo/get/vo */
export async function getPeripheralInfoVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPeripheralInfoVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePeripheralInfoVO_>('/api/peripheralInfo/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listPeripheralInfoByPage POST /api/peripheralInfo/list/page */
export async function listPeripheralInfoByPageUsingPost(
  body: API.PeripheralInfoQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePagePeripheralInfo_>('/api/peripheralInfo/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listPeripheralInfoVOByPage POST /api/peripheralInfo/list/page/vo */
export async function listPeripheralInfoVoByPageUsingPost(
  body: API.PeripheralInfoQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePagePeripheralInfoVO_>('/api/peripheralInfo/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listPeripheralInfoType GET /api/peripheralInfo/list/type */
export async function listPeripheralInfoTypeUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListString_>('/api/peripheralInfo/list/type', {
    method: 'GET',
    ...(options || {}),
  });
}

/** listMyPeripheralInfoVOByPage POST /api/peripheralInfo/my/list/page/vo */
export async function listMyPeripheralInfoVoByPageUsingPost(
  body: API.PeripheralInfoQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePagePeripheralInfoVO_>('/api/peripheralInfo/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updatePeripheralInfo POST /api/peripheralInfo/update */
export async function updatePeripheralInfoUsingPost(
  body: API.PeripheralInfoUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/peripheralInfo/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
